﻿#ifndef CMDDOPRJCLOSETREE_H
#define CMDDOPRJCLOSETREE_H

#include "CommandManager/CommandBase.h"
#include <QObject>

namespace PostCommand
{
    class CmdDoPrjCloseTree : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdDoPrjCloseTree();
        ~CmdDoPrjCloseTree();

        bool execute() override;
        void undo() override;
        void redo() override;
        void setIndex(int index) { m_index = index; }

    private:
        int m_index;
    };
}
#endif // !CMDDOPRJCLOSETREE_H
